package com.product.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

@Setter
@Getter
@Data
@TableName("inspectrecords")
public class InspectRecords implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;
    @TableId(value = "inspector_id", type = IdType.AUTO)
    private Integer inspectorId;
    @TableField(value = "line_id")
    private Integer lineId;
    @TableField(value = "order_item_id")
    private Long orderItemId;
    @TableField(value = "start_time", fill = FieldFill.INSERT)
    private LocalDateTime creationTime;
    @TableField(value = "inspect_num")
    private Long inspectNum;
    @TableField(value = "defect_num")
    private Long defectNum;
    @TableField(value = "end_time", fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;
    @TableField(value = "deleted")
    @TableLogic
    private String deleted;
}
